[#include "/WEB-INF/pages/common/taglibs.ftl"]
 <div class="jqxWidget">
	<div class="jqxTabs">
		<ul>
			[#list channelList as channel]
				<li>${channel.title}</li>
			[/#list]
			<li>新建频道</li>
		</ul>
		[#list channelList as channel]
			<div>
				<form action="[@c.url value="/manage/Channel_update.action"/]?backurl=${action.currentUrl}" method="post">
					<input type="hidden" name="id" value="${channel.id}" />
					<input type="hidden" name="channel.id" value="${channel.id}" />
					<table>
						<caption>${(channel.title)!''}</caption>
							<tr>
								<th>标题：[#--[@fmt.message key="manage.article.type"/]--]</th>
								<td><input type="text" placeholder="?" name="channel.title" value="${(channel.title)!''}"/></td>
								<td></td>
								<td></td>
							</tr>	
							<tr>
								<th>模板</th>
								<td colspan="3">
									<select name="channel.templateId">
										<option value=""></option>
										[#list templateList as template]
											<option value="${template.id}" [#if template.id == channel.templateId]selected='selected'[/#if]>${template.path}/${template.name}</option>
										[/#list]
									</select>&nbsp;<input type="button" value="编辑"/>
								</td>
							</tr>
							<tr>
								<th>语言：</th>
								<td>
									<select name="channel.i18n">
										[#list configI18N.configItemList as item]
											<option value="${item.value}" [#if item.value == channel.i18n]selected='selected'[/#if]>${item.name}</option>
										[/#list]
									</select>
								</td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<th>可用：</th>
								<td>
									<label for="" >可用</label><input type="radio" name="channel.enabled" value="true" [#if channel == null || (channel.enabled ==true)]checked[/#if]/>
									<label for="" >禁用</label><input type="radio" name="channel.enabled" value="false" [#if (channel != null && channel.enabled == false)]checked[/#if]/>
								</td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<th></th>
								<td colspan=3><input type="submit" value="更新"/>|<input class="channel_review" type="button" value="预览" act="eidt" ckey="${channel.id}"/></td>
							</tr>
					</table>
				</form>
			</div>
		[/#list]
		<div>
			<form action="[@c.url value="/manage/Channel_save.action"/]?backurl=${action.backurl}" method="post">
				<table>
					<caption>频道内容</caption>
						<tr>
							<th>标题：[#--[@fmt.message key="manage.article.type"/]--]</th>
							<td><input type="text" placeholder="?" name="channel.title"/]</td>
							<td></td>
							<td></td>
						</tr>	
						<tr>
							<th>模板</th>
							<td colspan="3">
								<select name="channel.templateId">
									<option value=""></option>
									[#list templateList as template]
										<option value="${template.id}">${template.path}/${template.name}</option>
									[/#list]
								</select>&nbsp;<input type="button" value="编辑"/>&nbsp;<input type="button" value="预览"/>
							</td>
						</tr>
						<tr>
							<th>语言：</th>
							<td>
								<select name="channel.i18n">
									[#list configI18N.configItemList as item]
										<option value="${item.value}">${item.name}</option>
									[/#list]
								</select>
							</td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<th>可用：</th>
							<td>
								<label for="" >可用</label><input type="radio" name="channel.enabled" value="true" checked="checked"/>
								<label for="" >禁用</label><input type="radio" name="channel.enabled" value="false"/>
							</td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<th></th>
							<td colspan=3><input type="submit" value="保存"/>|<input class="channel_review" type="button" value="预览" act="new"/></td>
						</tr>
				</table>
			</form>
		</div>
	</div>
</div>
<div id="delete-confirm" style="display:none" title="删除频道">
	<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>频道删除后将无法恢复.</p>
	您确认删除吗？
</div>
	
